Xbasic
Toolbar::get Function
IN THIS PAGE
Syntax
<toolbar> as P = toolbar::get(toolbar_name as C)
Arguments
- toolbar_name
The name of the toolbar.
Description
Returns a pointer to a toolbar.
Discussion
The Toolbar::get() function returns a pointer to the specified Toolbar_Name.
A toolbar's name can be determined by undocking the toolbar and checking the title that appears in the toolbar title bar.
Example
The following disables the 3rd control on the default toolbar in Form View.
tb = toolbar::get("Form View") tb.controlenable(3, .f.)
Alpha Five V10 and Prior
Changes were made in Alpha Anywhere that changed how the get() method can be invoked. The syntax above is supported in Alpha Five version 11 and all versions of Alpha Anywhere.
In Alpha Five version 10 and prior, however, toolbar::get() is not suported. Instead, you must use the dot operator to call the function, as shown in the example below:
tb = toolbar.get("Form View") tb.controlenable(3, .f.)
Limitations
Desktop applications only